package com.example.music.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@ApiModel(value = "物流信息管理实体",description = "物流信息管理实体描述")
public class IogInformation {
    @ApiModelProperty("物流信息序号")
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDeliveryAdd() {
        return deliveryAdd;
    }

    public void setDeliveryAdd(String deliveryAdd) {
        this.deliveryAdd = deliveryAdd;
    }

    public String getConAdd() {
        return conAdd;
    }

    public void setConAdd(String conAdd) {
        this.conAdd = conAdd;
    }

    @ApiModelProperty("快递公司")
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2,max = 20,message = "用户名长度必须在2-20之间")
    private String company;

    @ApiModelProperty("收货地址")
    private String deliveryAdd;

    @ApiModelProperty("发货地址")
    private String conAdd;
}
